﻿using System;

namespace _3
{
    class Program
    {
        struct vector3
        {
            public double x;
            public double y;
            public double z;
            public void display()
            {
                Console.WriteLine("({0},{1},{2})", x, y, z);
            }
            public double length()
            {
                double l;
                l = x * x + y * y + z * z;
                return Math.Sqrt(l);
            }
           
        }
        static void Main(string[] args)
        {
            vector3 fi;
            fi.x = Convert.ToDouble(Console.ReadLine());
            fi.y = Convert.ToDouble(Console.ReadLine());
            fi.z = Convert.ToDouble(Console.ReadLine());
            fi.display();
            Console.WriteLine(fi.length());
            Console.ReadKey();
        }
    }
}
